package com.ruoyi.request.test;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.request.dto.InventoryRequestDo;

/**
 * @author: TheRaging
 * @date: 2023年07月31日 17:35:00
 * @description:
 */
public class test {
    
    public static void main(String[] args) {
        String str = "{\n" + "\t\t\t\"ROWID\": 1,\n" + "\t\t\t\"CompanyCode\": \"HA\",\n" + "\t\t\t\"WHSPRCSum\": 87508.98,\n" + "\t\t\t\"RTLPRCSum\": 126695.4,\n" + "\t\t\t\"StockNumberSum\": 16872,\n" + "\t\t\t\"GID\": 1001368,\n" + "\t\t\t\"CODE\": \"07000126\",\n" + "\t\t\t\"SORT\": \"210402       \",\n" + "\t\t\t\"NAME\": \"N农夫山泉普通装天然水\",\n" + "\t\t\t\"CODE2\": \"6921168509256\",\n" + "\t\t\t\"SPEC\": \"550ml\",\n" + "\t\t\t\"VALIDPERIOD\": 730,\n" + "\t\t\t\"PickingUnits\": 24,\n" + "\t\t\t\"MUnit\": \"瓶\",\n" + "\t\t\t\"BRAND\": \"1041      \",\n" + "\t\t\t\"WHSPRC\": 1.07,\n" + "\t\t\t\"ThumbnailAddress\": \"https://mimage.meiyijia.com.cn/Upload/ProductPic/HA/07000126.jpg\",\n" + "\t\t\t\"FailureRemarks\": \"不可退\",\n" + "\t\t\t\"SingleStoreSales\": 372.2236,\n" + "\t\t\t\"WHSPRCTotal\": 673.03,\n" + "\t\t\t\"RTLPRCTotal\": 1258,\n" + "\t\t\t\"MonthlySales\": 644,\n" + "\t\t\t\"HIGHINV\": 70,\n" + "\t\t\t\"LOWINV\": 46,\n" + "\t\t\t\"UpdateTime\": \"/Date(1690778293317)/\",\n" + "\t\t\t\"RTLPRC\": 2,\n" + "\t\t\t\"isoperate\": 1,\n" + "\t\t\t\"stockNumber\": 629,\n" + "\t\t\t\"adjustNumber\": null,\n" + "\t\t\t\"fenlei\": \"常规商品\",\n" + "\t\t\t\"BigClass\": \"水                                  \",\n" + "\t\t\t\"GoodsStatus\": \"正常\",\n" + "\t\t\t\"AdviceRTLPRC\": 2\n" + "\t\t}";
        InventoryRequestDo entity = new InventoryRequestDo();
        entity = JSONObject.parseObject(str,InventoryRequestDo.class);
        System.out.println(JSONObject.toJSONString(entity));
    }
    
}